package io.mft.dev.base;

import io.mft.commons.function.FunctionActionRequest;
import io.mft.commons.function.response.FunctionResponse;
import io.mft.commons.ioc.MFTSpringUtil;

public interface ApiInvoker {
	FunctionResponse invoke(String apiKey,FunctionActionRequest request);
	
	public static ApiInvoker instance() {
		ApiInvoker apiInvoker=MFTSpringUtil.getApplicationContext().getBean(ApiInvoker.class);
		return apiInvoker;
	}
}
